<?php


namespace app\common\lib;


class Util
{
    /**
     * API输出格式处理
     *
     * @param $status
     * @param $message
     * @param $data
     */
   public static function show($status,$message,$data = null)
   {
       $result = [
         'status' => $status,
         'message' => $message,
         'data' => $data
       ];
       echo  json_encode($result);
   }
}